﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dandan
{
    public class OrderData
    {
        private static OrderData order = null;//提供私有静态实例对象
        public static OrderData GetData()
        {
            if (order == null)
            {
                order = new OrderData();
            }
            return order;
        }

        public static void SetData(OrderData Data)
        {
            order = Data;
        }

        public string status;
        public string code;
        public Order[] data;
    }

    public class Order
    {
        public int id;
        public string sn;
        public string total;
        public ProjectsData[] projects;
        public int status;
    }

    public class ProjectsData
    {
        public int id;
        public string sn;
        public string cover;
        public string title;
        public string description;
        public string status;
        public string total;
        public string sales;
        public string count;
        public string discount;
        public string price;
        public fieldsData[] fields;
    }
    
}
